using UniversalAdminSystem.Domian.FileStorage.Interfaces;

namespace UniversalAdminSystem.Domian.FileStorage.Services;

public class FileDomainService : IFileDomainService
{
    public bool CheckFileSecurity(out string result, string? name = null, string? type = null)
    {
        if (name != null && name.Contains(".."))
        {
            result = "文件名非法";
            return false;
        }
        
        result = "安全";
        return true;
    }
} 